<template>
	<view>
		<view class="top">
			<image class="topImg" mode="aspectFill" :src="topImg"></image>
			<!-- <view class="topTitle">
				<view>在这里,</view>
				<view>我们为你提供帮助与支持</view>
			</view> -->
		</view>
		<view class="details">
			<rich-text :nodes="content"></rich-text>
		</view>
		<view class="footer">
			<footBar></footBar>
		</view>
		
	</view>
</template>

<script>
	import foorBar from "@/components/footBar/footBar.vue"
	export default{
		components: {
			foorBar
		},
		data(){
			return{
				content:'',
				topImg:''
			}
		},
		onShow() {
			this.getList()
		},
		methods:{
			getList(){
				let data={}
				this.api.get('api/content/init',data).then(res=>{
					if(res.code == 200){
						this.content = res.data.help_content
						this.topImg = res.data.help_picture[0]
					}
				})
			}
		}
	}
</script>

<style>
	.topImg{
		width: 100%;
		height: 403rpx;
		position: relative;
		left: 0;
		right: 0;
	}
	.topTitle{
		font-size: 38rpx;
		font-weight: 700;
		position: absolute;
		right: 30rpx;
		top:150rpx;
		text-align: center;
	}
	.details{
		padding-bottom: 470rpx;
		margin: 30rpx;
		font-size: 30rpx;
	}
	.footer{
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 999;
	}
</style>